/*
 * 2005-11-16 lxm 创建。 
 */
package com.hd123.rumba.catalog;

import java.util.List;

import net.sf.hibernate.HibernateException;

import com.hd123.rumba.exception.BusinessException;
import com.hd123.rumba.sql.DResultPage;

/**
 * @author lxm
 * 
 * 数据传输，DCategory结果集
 */
public class DCategoryPage extends DResultPage {

  private DCategory[] elements;

  public DCategory[] getElements() {
    return elements;
  }

  public void setElements(DCategory[] elements) {
    this.elements = elements;
  }

  public void assignFrom(List list) throws BusinessException, HibernateException {
    super.assignFrom(list);
    elements = new DCategory[list.size()];
    for (int i = 0; i < list.size(); i++) {
      ICategory c = (ICategory) list.get(i);
      elements[i] = new DCategory();
      elements[i].assignFrom(c);
    }
  }
}
